home *** CD-ROM | disk | FTP | other *** search
/ Zoom 2 / Zoom - Release 2 (1996)(Active Software)[!].iso / programming / amiga / muibuilder / mb / developer / c / sources_gencodec / tools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-16  |  1005 b   |  27 lines

  1. #include <exec/types.h>
  2. #include <dos/dos.h>
  3. #include <stdio.h>
  4.  
  5. #define AllocMemory(s)    safe_AllocMemory((s), __FILE__, __LINE__)
  6. #define FreeMemory(p)    safe_FreeMemory((p), __FILE__, __LINE__)
  7. #define ShowMemory()     safe_ShowMemory(__FILE__, __LINE__)
  8. #define ClearMemory()     safe_ClearMemory(__FILE__, __LINE__)
  9.  
  10. void DisplayMsg(char *Msg);
  11. void *safe_AllocMemory(ULONG byteSize,char *File,ULONG Line);
  12. void safe_FreeMemory(void* ptr,char *File,ULONG Line);
  13. void safe_ShowMemory(char *File,ULONG Line);
  14. void safe_ClearMemory(char *File,ULONG Line);
  15. char *CopyBlock(FILE *file,char *Filechar,char *String,
  16.                 char *begin,char *end,
  17.                 char *MsgErrorBegin,char *MsgErrorEnd,
  18.                 char *MainFile);
  19. void Indent(FILE *file,int nb);
  20. void extract_dir( char * );
  21. void extract_file( char* ,char* );
  22. void add_extend( char *, char * );
  23. void remove_extend( char * );
  24. void change_extend( char *, char * );
  25. char * LoadFileInRAM(char *,BOOL);
  26. BOOL CopyFile(char *FromFile,char *ToFile);
  27. char * GetCurrentDirectory(void);